﻿<%@ Page Title="Cadastrar fornecedor" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="CadastrarFornecedor.aspx.cs" Inherits="TCC_Hotel.Apresentacao.Fornecedores.CadastrarFornecedor" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 280px;
        }
        .style2
        {
            width: 279px;
        }
    </style>
    <script src="../../Scripts/Mascaras.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-1.7.2.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <asp:Label ID="lblAviso2" runat="server" Text="- Os campos com * são obrigatórios"
            ForeColor="Red"></asp:Label>
    </div>
    <p class="title-telas">
        Cadastrar fornecedor
    </p>
    <div style="margin-bottom: 0px">       
        <fieldset>
            <legend id="legend1" runat="server">
                <asp:Label ID="lblFornecedorFieldset" runat="server" Text="Fornecedor"></asp:Label>
            </legend>
            <table style="width: 100%;">
                <tr>
                    <td class="style1">
                        <asp:Label ID="lblFornecedor" runat="server" Text="Fornecedor:"></asp:Label>
                        <asp:Label ID="lblValidacaoFornecedor" runat="server" Text="*" ForeColor="Red"></asp:Label><br />
                        <asp:TextBox onkeyup="formataCaracteresPermitidos(this,event)" ID="txtFornecedor"
                            runat="server" Width="200px" MaxLength="30"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblEmailFornecedor" runat="server" Text="Email:"></asp:Label>
                        <asp:Label ID="lblValidacaoEmailFornecedor" runat="server" Text="*" ForeColor="Red"></asp:Label><br />
                        <asp:TextBox onkeyup="formataCaracteresPermitidos(this,event)" ID="txtEmailFornecedor"
                            runat="server" Width="200px" MaxLength="40"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="lblTelefone" runat="server" Text="Telefone:"></asp:Label>
                        <asp:Label ID="lblValidacaoTelefone" runat="server" Text="*" ForeColor="Red"></asp:Label>
                        <br />
                        <asp:TextBox onkeyup="formataTelefone(this,event);" ID="txtDDDTelefone" runat="server"
                            Width="30px" MaxLength="2"></asp:TextBox>
                        <asp:TextBox onkeyup="formataTelefone(this,event);" ID="txtTelefone" runat="server"
                            Width="100px" MaxLength="8"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </fieldset>
        <div align="left" style="width: 40%; float: left">
            <asp:Button ID="btnSalvar" runat="server" Text="Salvar" Width="100px" OnClick="btnSalvar_Click" />
            <asp:Button ID="btnLimpar" runat="server" Text="Limpar" Width="100px" OnClick="btnLimpar_Click" />
            <asp:Button ID="btnVoltar" runat="server" Text="Voltar" Width="100px" OnClick="btnVoltar_Click" />
        </div>      
    </div>
</asp:Content>
